package com.gxa.jjty.phy.service;

import com.gxa.jjty.core.exception.BusinessException;
import com.gxa.jjty.core.pojo.PhyUser;
import com.gxa.jjty.core.service.BaseService;

import java.util.List;
import java.util.Map;

/**
 * @ClassName PhyUserService
 * @Author: ws
 * @date 2021/12/2 14:19
 */
public interface PhyUserService extends BaseService<PhyUser> {

    Map login(String userName, String password) throws BusinessException;

    Map loginByPhone(String phone, String code) throws BusinessException;

    void changePassword(Long id, String password, String newPassword) throws BusinessException;

    void logout(String token);

    List<PhyUser> selectByDesc();
}
